# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=cpfinder
pkgver=0.1
pkgrel=7
groups=('blackarch' 'blackarch-scanner' 'blackarch-webapp')
pkgdesc='Simple script that looks for administrative web interfaces.'
arch=('any')
url='http://packetstormsecurity.com/files/118851/Control-Panel-Finder-Script.html'
license=('custom:unknown')
depends=('perl' 'perl-http-message' 'perl-libwww')
makedepends=('unzip')
source=('https://dl.packetstormsecurity.net/UNIX/scanners/cpfinder.zip')
sha512sums=('17865449a223f80e20b2c3edfd1a021b4c786506e0572981a11c28f107b7c354683c890c631bd85a647aa1a66e8bedb72dcd9b37ff36c9fa6cd3bf8cbd393158')

prepare() {
  sed -i 's/.$//' Cp-Finder.pl
}

package() {
  install -Dm 755 Cp-Finder.pl "$pkgdir/usr/bin/$pkgname"
}

